export default {
  //mutitaons 会默认接收state参数
  //更改 Vuex 的 store 中的状态的唯一方法是提交 mutation
  changeMsg(state, value) {
    console.log(value);
    state.msg = 'Vuex!!!' + value
    localStorage.setItem('Vuex-movie', JSON.stringify(state))
  },
  getMovieList(state, movieList) {
    state.movieList = movieList
    localStorage.setItem('Vuex-movie', JSON.stringify(state))
  }
}